// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MintUI from 'mint-ui'
import axios from 'axios'
import es6Promise from 'es6-promise'
import 'mint-ui/lib/style.css'
import { apiPost } from 'src/common/api.js'
es6Promise.polyfill()
Vue.config.productionTip = false
Vue.use(MintUI)
import VueCookie from 'vue-cookie'
Vue.use(VueCookie)
Vue.prototype.$http = axios
Vue.prototype.$Indicator  = MintUI.Indicator
Vue.prototype.$apiPost = apiPost
/* eslint-disable no-new */
Vue.prototype.$bus = new Vue()
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
